Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw error instead of using process.exit() #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BryanTorreblanca00
Copy link

👋 Hello first time contributor here,

This PR attempts to resolve #20 by throwing an error when a user needs to upgrade a node version. This will allow callers to gracefully handle the error and as mentioned in the issue, won't disrupt any asynchronous execution.

One thing to mention in this PR is we no longer check the error message in the tests, I'm unsure how to assert the error of t.throws().

Feedback appreciated! Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Throw an error instead of using process.exit
1 participant